From: kfraser@localhost.localdomain Date: Wed, 18 Oct 2006 17:13:57 +0000 (+0100) Subject: [SOLARIS] More tools fixes. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15589^2~40 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=2b30fc3c70a02875b9d2c8b9b1b28917f343dca3;p=xen.git [SOLARIS] More tools fixes. Many of the tools use C99 features such as bool, or expect certain functions. Fix the CFLAGS to enable these on Solaris. Also make sure the correct $CC is passed to Python. Signed-off-by: John Levon --- diff --git a/config/SunOS.mk b/config/SunOS.mk index ca73d6f949..21568304fc 100644 --- a/config/SunOS.mk +++ b/config/SunOS.mk @@ -31,4 +31,5 @@ else CFLAGS ?= -O1 -fno-omit-frame-pointer endif -CFLAGS += -Wa,--divide +CFLAGS += -Wa,--divide -D_POSIX_C_SOURCE=200112L -D__EXTENSIONS__ + diff --git a/tools/python/Makefile b/tools/python/Makefile index e73d624414..6b84446ee6 100644 --- a/tools/python/Makefile +++ b/tools/python/Makefile @@ -6,15 +6,15 @@ all: build .PHONY: build build: - CFLAGS="$(CFLAGS)" python setup.py build + CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py build .PHONY: install ifndef XEN_PYTHON_NATIVE_INSTALL install: all - CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force + CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force else install: all - CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --force + CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --force endif .PHONY: test